package com.zut.subject.domain.convert;

import com.zut.subject.domain.entity.SubjectLabelBo;
import com.zut.subject.infra.basic.entity.SubjectLabel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


//将SubjectCategoryBo类型转化为SubjectCategory类型
@Mapper
public interface ConvertLabel {

    ConvertLabel INSTANCE = Mappers.getMapper(ConvertLabel.class);
    //Bo转化为subjectCategory
    SubjectLabel toSubjectLabel(SubjectLabelBo subjectLabelBo);

    //subjectLabelList转化为ListSubjectLabelBo
    List<SubjectLabelBo> toListSubjectLabelBo(List<SubjectLabel> subjectLabel);

}
